package com.cbs.android.extension.emojiinputfilter.sample;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.InputFilter;
import android.widget.EditText;

import com.cbs.android.extension.emojiinputfilter.EmojiInputFilter;

public class MainActivity extends AppCompatActivity {
    private static final String TAG = MainActivity.class.getName();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        EditText editText = (EditText) findViewById(R.id.text);
        editText.setFilters(new InputFilter[]{new EmojiInputFilter()});
    }
}
